package com.baiyu.model;

import com.baiyu.model.base.Message;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Map;

@Data
public class NewMsg implements Message {

    private final String name = "newMsg";

    @JsonProperty("format")
    private FormatType format;
    
    @JsonProperty("content")
    private String content;
    
    @JsonProperty("senderId")
    private String senderId;

    @JsonProperty("receiveId")
    private String receiveId;

    @JsonProperty("houseId")
    private String houseId;

    @JsonProperty("data")
    /**
     * 用户回应的数据放这里 json 格式
     */
    private Map<String,Object> data;

    @Override
    public String getName() {
        return name;
    }
}